include('shared.lua')

AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')

function ENT:Initialize( )
 
        self:SetModel( "models/props_combine/breenconsole.mdl" ) 
        self:SetSolid( SOLID_BBOX ) 
        self:SetUseType( SIMPLE_USE ) 
        self:DropToFloor()
 
end

function ENT:Use( pl )
    pl:SetTeam(2)
	umsg.Start('ConsoleWindow', pl)
	umsg.End()
end
 
function SetPlayerModel_1( pl )
	pl:SetModel('models/player/Group01/male_01.mdl')
end
concommand.Add("SetPlayerModel_1", SetPlayerModel_1)

function SetPlayerModel_2( pl )
	pl:SetModel('models/player/Group01/male_02.mdl')
end
concommand.Add("SetPlayerModel_2", SetPlayerModel_2)

function SetPlayerModel_3( pl )
	pl:SetModel('models/player/Group01/male_03.mdl')
end
concommand.Add("SetPlayerModel_3", SetPlayerModel_3)

function SetPlayerModel_4( pl )
	pl:SetModel('models/player/Group01/male_04.mdl')
end
concommand.Add("SetPlayerModel_4", SetPlayerModel_4)

function SetPlayerModel_5( pl )
	pl:SetModel('models/player/Group01/male_05.mdl')
end
concommand.Add("SetPlayerModel_5", SetPlayerModel_5)

function SetName(pl, name, sid)
	sql.Query("UPDATE apex SET name = "..name.." WHERE sid = '"..sid.."'")
end
concommand.Add("SetName", SetName)

function SetAge(pl, age, sid)
	sql.Query("UPDATE apex SET age = "..age.." WHERE sid = '"..sid.."'")
end
concommand.Add("SetAge", SetAge)

function SetModel(pl, model, sid)
	sql.Query("UPDATE apex SET model = "..model.." WHERE sid = '"..sid.."'")
end
concommand.Add("SetModel", SetModel)